<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>入门案例</title>
    <script src="vue.js"></script>
</head>
<body>
<!--绑定数据，页面中显示数据{{参数}}插值表达式-->
<div id="app">
        <div>{{msg}}</div>
        <div>{{name}}</div>
</div>

<script>
    //el：指定要操作的元素-绑定id为app的分区
    let v = new Vue({
        el: '#app',
        //data：定义数据-页面中需要的参数值
        data: {
            msg: "hello vue",
            name: "jerry"
        }
    })
    console.log(v.msg);
</script>
</body>
</html>